package cn.gok.springbootdemo05thymeleaf.contoller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: chen fan
 * @since: 2022/11/16 10:10
 * @description:
 */
@RestController
public class TestController {

    @RequestMapping("/test01")
    public Map<String, String> test(){

        Map<String, String> map = new HashMap<>();
        map.put("code","200");
        map.put("msg","hello spring boot");
        return map;
    }
}
